"use strict";
exports.__esModule = true;
var Utils = (function () {
    function Utils() {
    }
    Utils.prototype.makeEP = function (text) {
        // let str:string = text.toString();
        // if (typeof(text) == "string"){
        //     str = text;
        // }else if (typeof(text) == "number"){
        //      str = text.toString();
        // }
        var e = document.createElement("p");
        var node = document.createTextNode(text);
        e.appendChild(node);
        return e;
    };
    ;
    Utils.prototype.now = function () {
        var date = new Date();
        return date.toLocaleDateString() + " " + date.toLocaleTimeString();
    };
    Utils.prototype.log = function (text, prefix) {
        if (prefix === void 0) { prefix = ""; }
        console.log(this.now(), prefix, ":", text);
        if (typeof window !== 'undefined') {
            var nText = prefix + ":" + text.toString();
            document.body.appendChild(this.makeEP(nText));
        }
    };
    return Utils;
}());
exports.Utils = Utils;
